//
//  LRPopoverController.swift
//  LRWeibo
//
//  Created by 雷路荣 on 15/12/31.
//  Copyright © 2015年 leilurong. All rights reserved.
//

import UIKit

class LRPopoverController: UIViewController,UITableViewDataSource {
    
    private var contents: [String] = ["首页","好友圈","群微博","我的微博","新浪微博"]
    private let ReuseIdentifier = "Cell"
    @IBOutlet weak var tableView: UITableView!
    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.clearColor()
        self.tableView.dataSource = self
        tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: ReuseIdentifier)
    }
    func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return contents.count
    }
    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier(ReuseIdentifier, forIndexPath: indexPath)
        cell.textLabel?.text = contents[indexPath.row]
        return cell
    }

}
